#include<iostream>
using namespace std;
void change(int a[],int Size);
int main()
{
	int b[10] = { 1,2,3,4,5,6,7,8,9,10 };

	change(b,10);
	for (int i = 0; i < 10; i++)
	{
		cout << b[i] << endl;
	}
	system("pause");
}
void change(int a[],int Size)
{
	int c;
	for (int i = 0; i < 5; i++)
	{
		c = a[i];
		a[i] = a[9 - i];
		a[9 - i] = c;
	}
}